<?php

namespace App\Http\Controllers\Admin\Sponsor;

use App\Services\Admin\Sponsor\ExpressService;
use Exception;
use Illuminate\Http\JsonResponse;

class ExpressController extends BaseSponsorController {

    protected ExpressService $expressService;

    /**
     * @throws Exception
     */
    public function __construct()
    {
        parent::__construct();
        $this->expressService = $this->loadService('Admin\Sponsor\ExpressService');
    }

    /**
     * 物流公司列表
     *
     * @return JsonResponse
     * @throws Exception
     */
    public function list(): JsonResponse
    {
        $list = $this->expressService->list($this->params);
        return outputJsonResult($list);
    }
}
